<!--要件配置ss11010 ss02001 ss02005-->
<template>
    <div style="width: 100%;height: 100%">
        <Ss11010Table :processPhase="processPhase"
                      :expandedCode="expandedCode"
                      :ss11001Id="ss11010Id"
                      :ss12001Id="ss12001Id"
                      :assistanceType="assistanceType"
                      :validateCode.sync="validateCode"
                      :validateMsg.sync="validateMsg"
                      :isDisabled.sync="isDisabled"
        />
        <div style="height:20%;line-height:40px;float:left;;margin-left:40%">
            <Button @click="prevStep" >上一步</Button>
        </div>
    </div>
</template>

<script>
    import {getAction, postAction} from '@/api/request'
    import {CommonMixin} from '@/views/common/js/CommonMixin'
    import '@/views/common/css/common.css';
    import { getSign, createUpLoadFiles } from '@/api/common'
    import Ss11010Table from '@/components/system/ss11010-table'


    export default {
        name: "application10",
        mixins: [CommonMixin],
        components: {
            Ss11010Table
        },
        data() {
            return {
                isDisabled:true,  //是否加载完成要件配置
                btnLoading:false,
                validateCode:true,
                validateMsg:'',
                processPhase:'01', //流程阶段数组 如 01,02,03
                expandedCode:'01',   //默认展开，并可上传操作的流程阶段code
                assistanceType:'100', //救助类型
                ss11010Id:'',
                ss12001Id:'',
                familyInfo: {},
            }
        },
        methods: {
            prevStep () {
                this.$emit('prevStep')
            },
            nextStep () {
                this.btnLoading=true
                if(this.validateCode == false) {
                    this.btnLoading=false
                    this.$Message.error(this.validateMsg)
                } else {
                    this.$emit('nextStep')
                    this.btnLoading=false
                }
            },
            //获取家庭信息
            getFamilyInfor() {
                this.familyInfo = this.$parent.familyInfo;
                this.ss11010Id = this.familyInfo.ss11001Id;
                this.ss12001Id = this.familyInfo.ss12001Id;
            },
        },
        created() {
            this.getFamilyInfor();
        }
    }
</script>

<style >
    .demo-spin-icon-load{
        animation: ani-demo-spin 1s linear infinite;
    }
    @keyframes ani-demo-spin {
        from { transform: rotate(0deg);}
        50%  { transform: rotate(180deg);}
        to   { transform: rotate(360deg);}
    }
    .demo-spin-col{
        height: 100px;
        position: relative;
        border: 1px solid #eee;
    }
    .ivu-table .demo-table-info-row td{
        background-color: #2db7f5;
        color: #fff;
    }
    .ivu-table .demo-table-error-row td{
        background-color: #ffffff;
        /*font-color: #fff;*/
        color: #f33e3e;
    }
    .ivu-table td.demo-table-info-column{
        background-color: #2db7f5;
        color: #fff;
    }
    .ivu-table .demo-table-info-cell-name {
        background-color: #2db7f5;
        color: #fff;
    }
    .ivu-table .demo-table-info-cell-age {
        background-color: #ff6600;
        color: #fff;
    }
    .ivu-table .demo-table-info-cell-address {
        background-color: #187;
        color: #fff;
    }
</style>
